﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gao.Poker.Domain
{
    public class ConsumptionEx
    {
        public Consumption Consumption { get; set; }    

        public Decimal Monetary
        {
            get
            {
                return Consumption.ConsumptionPrlducts.Sum(cp => cp.Price);
            }
            set { Consumption.Monetary = value; }
        }
    }
}
